<?php
namespace Admin\Models\school;

use Admin\Models\BaseModel;

class XhschoolApply extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $iId;

    /**
     *
     * @var integer
     */
    public $iSchoolId;

    /**
     *
     * @var integer
     */
    public $iStudId;

    /**
     *
     * @var string
     */
    public $sStudName;

    /**
     *
     * @var integer
     */
    public $iType;

    /**
     *
     * @var integer
     */
    public $iTypeExpansion;

    /**
     *
     * @var string
     */
    public $sAttachmentUrl;

    /**
     *
     * @var decimal
     */
    public $dDevCost;

    /**
     *
     * @var decimal
     */
    public $dSerCost;

    /**
     *
     * @var integer
     */
    public $iStatus;

    /**
     *
     * @var string
     */
    public $sRemarks;

    /**
     *
     * @var integer
     */
    public $bEstablished;

    /**
     *
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     */
    public $iLastModifyUserId;

    /**
     *
     * @var integer
     */
    public $iPayState;

    /**
     *
     * @var string
     */
    public $sLeadPosition;

    /**
     *
     * @var string
     */
    public $sLeadName;

    /**
     *
     * @var string
     */
    public $sLeadPhone;

    /**
     *
     * @var string
     */
    public $sLeadCompany;

    /**
     *
     * @var string
     */
    public $sIdentityNum;

    /**
     *
     * @var string
     */
    public $sAccountNum;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("XHSchool_Apply");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSchool_Apply';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolApply[]|XhschoolApply|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolApply|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
